package com.zhuangxiaoyan.designpattern.proxymodel.cglibproxy;



/**
 * @Classname ProxyTest
 * @Description TODO
 * @Date 2022/5/1 10:26
 * @Created by xjl
 */
public class CGLIBProxyTest {

    public static void main(String[] args) {
        // 创建目标对象
        TecherDaoimple target=new TecherDaoimple();
        // 获取代理对象，并转为TecherDaoimple类
        ProxyFactory proxyFactory = new ProxyFactory(target);
        TecherDaoimple techerDaoimple = (TecherDaoimple)proxyFactory.getProxyInstance();
        techerDaoimple.tech();
    }
}
